package com.w2cx.selenium.testCase;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testConfigOperatePosition extends CaseBase {


    @Test
    @Parameters({"operatePositionName","operatePositionSign","recommondNum"})
    public void testAddOperatePosition(String operatePositionName,String operatePositionSign,String recommondNum){
        //增加运营位
        copp.addOperatePosition(operatePositionName,operatePositionSign,recommondNum);
        //断言
        Assert.assertTrue(copp.addOperatePositionSuccess(operatePositionName),"添加运营位失败！");
        System.out.println("添加运营位成功！");
    }


    @Test
    @Parameters({"operatePositionName"})
    public void testDelOperatePosition(String operatePositionName){
        //删除运营位
        copp.delOperatePosition();
        //断言
        Assert.assertTrue(copp.delOperaPositionSuccess(operatePositionName),"删除运营位失败！");
        System.out.println("删除运营位成功");
    }


}
